/*
 * @Author: lei 2677065112@qq.com
 * @Date: 2022-10-03 15:05:26
 * @LastEditors: lei 2677065112@qq.com
 * @LastEditTime: 2022-10-04 16:38:59
 * @FilePath: \vue-admin-template\src\utils\get-page-title.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import defaultSettings from '@/settings'
// 左边有值，使用左边；左边无值，使用右边
const title = defaultSettings.title || 'Vue Admin Template'
// 设置浏览器标签栏上标题
export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
